import request from '@/utils/request'
import qs from 'qs'


//  05、值班-读取列表
export function listDuty(data) {
  return request({
    url: '/customize/duty/list',
    method: 'POST',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    params: data
  })
}

// 03、值班-删除
export function delDuty(data) {
  return request({
    url: '/customize/duty/delete',
    method: 'POST',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    params: data
  })
}

// 04、值班-读取填写信息
export function getDuty(data) {
  return request({
    url: '/customize/duty/get',
    method: 'POST',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    params: data
  })
}

// 02、值班-新增或更新
export function addDuty(data) {
  return request({
    url: '/customize/duty/save',
    method: 'POST',
    // headers: { 'content-type': 'application/x-www-form-urlencoded' },
    data: data
  })
}

// 01、值班-首页信息
export function firstDuty(data) {
  return request({
    url: '/customize/duty/index',
    method: 'POST',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    params: data
  })
}

